home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir34 / fdform18.zip / FDFORMAT.DOC < prev    next >
Text File  |  1991-07-21  |  32KB  |  768 lines

  1. FDFORMAT - Format Disks with higher Capacity
  2.  
  3. LICENSE
  4. -------
  5.  
  6. This program is a public-domain product for private and educational 
  7. use. You may freely copy and use it without any charge.
  8.  
  9. This program must not be sold for profit. An adaequate fee may be 
  10. requested for copying, shipping and handling when redistributing this 
  11. program.
  12.  
  13. You may modify and improve this program, but the executable program 
  14. must show a message that your version has been modified.
  15.  
  16. If you find, that this program is worth contributing for it, do not 
  17. hesitate to send cash, check, 3½"-diskettes or something else.
  18.  
  19. THANKS
  20. ------
  21.  
  22. Special thanks to the following people:
  23.  
  24. Jochen Roderburg: For suggestions and improvements to support 
  25. compatibility with several BIOS-Versions.
  26.  
  27. Michael Ho: For an improvement in sector sliding.
  28.  
  29. Joel Armengaud: For supporting automatic detection of 720 kByte 
  30. diskettes in FDREAD.
  31.  
  32. Jörg-Stefan Sell: For supporting an interface routine to less 
  33. compatible XT computers.
  34.  
  35. Michael D. Lawler: For lots of suggestions of improvemnts.
  36.  
  37. Peter Summers: For an improvement in FDREAD/FDR88
  38.  
  39. COMMENTS AND PROBLEMS
  40. ---------------------
  41.  
  42. Comments, improvements, suggestions and problems may be sent to
  43. the Author
  44.  
  45. Christoph H. Hochstätter
  46. Carl-Strehl-Strasse 20
  47. D-3550 Marburg
  48. West-Germany
  49.  
  50. Phone: +49 6421 14618 (voice/BTX)
  51.  
  52. E-Mail: HAMPE2@DMRHRZ11.BITNET (Bitnet/Internet)
  53.         Christoph Hochstaetter on 2:243/22 (Fido)
  54.  
  55.  
  56. SYSTEM REQUIREMENTS
  57. -------------------
  58.  
  59. IBM or compatible Computer
  60. DOS 3.20 or above
  61.  
  62.  
  63. FEATURES OF FDFORMAT
  64. --------------------
  65.  
  66. FDFORMAT is a replacement for the DOS-Format program, which has the 
  67. following advantages:
  68.  
  69. 1) Supporting 3½"-1.44 MB drives with any BIOS-Versions in ATs and
  70.    Clones. This saves you a lot of money, you would need for a new
  71.    BIOS-Version.
  72. 2) Formatting and using of 720/820 kByte disks in AT 5¼"-1.2 MByte
  73.    Drives using cheap double-density (DD) disks.
  74. 3) Increasing the capacity of your disks up to 300 kByte additional
  75.    storage.
  76. 4) Supporting 3½"-360 kByte format. This is useful, when you want to
  77.    make copies of 5¼"-disks to 3½"-Disks using DISKCOPY
  78. 5) Enhance speed of your diskette I/O up to 100% with sector sliding.
  79.    This is a method of physical ordering sectors in a  way, that your
  80.    drive is ready to read the next logical sector, when your head
  81.    advances one track.
  82. 6) Improved BOOT-Sector, which automatically boots from harddisk, if
  83.    the diskette in drive A: is not a system disk. This allows you to
  84.    leave the diskette in drive A:, when you reboot the system.
  85.  
  86.  
  87. GETTING STARTED
  88. ---------------
  89.  
  90. To make full use of FDFORMAT, you have to make a small TSR resident in 
  91. memory. There are two different TSRs for XT-computers and AT-
  92. computers. 80386/80486 machines are treated as AT computers here. The 
  93. TSR for AT computers is FDREAD.EXE and for XT computers it is 
  94. FDR88.EXE. Both TSRs use less than 200 Bytes resident memory.
  95.  
  96. To make FDREAD (or FDR88) resident simply type FDREAD (or FDR88) from 
  97. the DOS-Command-Line. Or install it in your AUTOEXEC.BAT file. If you 
  98. have a memory-manager installed, that supports UMB (like QEMM, QRAM, 
  99. mov'em or 386-Max), do not load FDREAD (or FDR88) high. The TSR 
  100. automatically detects the memory manager and will load high itself.
  101.  
  102. FDREAD will also automatically load high on computers with a 286(!!!) 
  103. processor and up, if DOS 5 or higher is used. You must have HIMEM.SYS 
  104. (or another XMS-Driver) installed and put DOS=HIGH in your CONFIG.SYS 
  105. file. Since this technique of high-loading is quite tricky, you must 
  106. ensure, that FDREAD is loaded before any program that plays with the 
  107. A20 line and grabs the Interrupt 13 (Hex). This is the case for some 
  108. disk-caching programs like HYPERDISK(TM). If you are using a disk-
  109. caching program, load FDREAD before the caching program. Also, if the 
  110. system hangs, after you installed FDREAD, load FDREAD as the first 
  111. TSR.
  112.  
  113. If you get the error "Too much memory available". You must load FDREAD 
  114. twice to avoid this error.
  115.  
  116. The TSR is required to support diskette formats, which are non-
  117. standard under DOS. If you intend to use FDFORMAT only with DOS-
  118. standard-diskette-formats, you do not need FDREAD (or FDR88).
  119.  
  120. Note, that it is not possible to create bootable diskettes, which 
  121. require the TSR. It may also be possible, that a format, which can be 
  122. read without the TSR on your computer, will fail on another computer. 
  123. If you are creating bootable diskettes, it is recommended only to use 
  124. DOS-standard-formats.
  125.  
  126.  
  127. USING FDFORMAT
  128. --------------
  129.  
  130. The general Syntax for FDFORMAT is:
  131.  
  132.                  FDFORMAT <drive> [options]
  133.  
  134. <drive> may be A: or B:. FDFORMAT does not format harddisks. Options 
  135. begin with a letter or number. Options may be preceeded by '/' or '-'. 
  136. If you do not preceed options with '/' or '-', you must seperate the 
  137. options with spaces. '.' and ':' are always ignored. So the following 
  138. commands will all format a 1.44 MByte Disk in Drive A:
  139.  
  140.  FDFORMAT A: /F:1.44
  141.  FDFORMAT A: -F144
  142.  FDFORMAT A: F144
  143.  
  144. You may precede all numbers with a $-sign to indicate, that they are 
  145. hexadecimal numbers.
  146.  
  147. OPTIONS USED IN FDFORMAT
  148. ------------------------
  149.  
  150.  
  151. The most important option is the F-Option. The F-Option determines the 
  152. general Format, which is used for the target diskette.
  153.  
  154. The following table shows, which parameters are allowed for the F-
  155. Options and for which type of Disk-Drive:
  156.  
  157. F-Opt Format          360k-Drive 720k-Drive 1.2M-Drive 1.44M-Drive
  158. ----- --------------- ---------- ---------- ---------- -----------
  159. F160  160 kByte Disk  yes        FDREAD     yes        FDREAD
  160. F180  180 kByte Disk  yes        FDREAD     yes        FDREAD
  161. F200  200 kByte Disk  FDREAD     FDREAD     FDREAD     FDREAD
  162. F205  205 kByte Disk  FDREAD     FDREAD     FDREAD     FDREAD
  163. F320  320 kByte Disk  yes        FDREAD     yes        FDREAD
  164. F360  360 kByte Disk  yes        FDREAD     yes        FDREAD
  165. F400  400 kByte Disk  FDREAD     FDREAD     FDREAD     FDREAD
  166. F410  410 kByte Disk  FDREAD     FDREAD     FDREAD     FDREAD
  167. F720  720 kByte Disk  no         yes        FDREAD     yes
  168. F800  800 kByte Disk  no         FDREAD     FDREAD     FDREAD
  169. F820  820 kByte Disk  no         FDREAD     FDREAD     FDREAD
  170. F120  1.2 MByte Disk  no         no         yes        yes
  171. F12   1.2 MByte Disk  no         no         yes        yes
  172. F144  1.44 MByte Disk no         no         FDREAD     yes
  173. F14   1.44 MByte Disk no         no         FDREAD     yes
  174. F148  1.48 MByte Disk no         no         FDREAD     yes
  175. F16   1.6 MByte Disk  no         no         no         FDREAD
  176. F164  1.64 MByte Disk no         no         no         FDREAD
  177. F168  1.68 MByte Disk no         no         no         FDREAD
  178. F172  1.72 MByte Disk no         no         no         FDREAD
  179.  
  180. FDREAD in the above table means, that this format will work only, if 
  181. FDREAD (or FDR88) is installed. You may find out, that this table will 
  182. not be valid for your table and that you can use certain diskette 
  183. formats without FDREAD (or FDR88), that are listed to work with FDREAD 
  184. (or FDR88) only.
  185.  
  186. The other options are:
  187.  
  188. 1    : Format single sided Disk (provided for DOS-FORMAT
  189.        compatibility).
  190. 4    : Format Standard 360 kByte Disk (provided for DOS-FORMAT
  191.        compatibility).
  192. 8    : Format 8 sector Disk (provided for DOS-FORMAT compatibility).
  193. A    : Use BIOS-Calls only to switch to different diskette types.
  194. Bnnn : Use Disk-Type Byte nnn (for use with older BIOS Versions).
  195. Cnnn : Use nnn Sectors per Cluster (nnn = 1 or 2).
  196. Dnnn : Use nnn Root-Directory-Entries (nnn = 1-224).
  197. Gnnn : Use Gap-Length of nnn (for use by experts only).
  198. Hnnn : Use nnn heads (nnn = 1 or 2).
  199. Innn : Use an Interleave of nnn (for use by experts only).
  200. K    : Do not wait for any keyboard input, when starting FDFORMAT.
  201.        (Useful, when starting FDFORMAT from batch files).
  202. Mnnn : Use Media Byte nnn (Useful for ATARI formats).
  203. Mnnn : Use Media-Descriptor-Byte nnn. (Useful when formatting ATARI ST
  204.        disks).
  205. Nnnn : Use nnn Sectors.
  206. O    : Format 720 kByte disk for use with AT&T/Olivetti M24/M28.
  207. Q    : Quick Format. Only rewrite the System-Area.
  208. R    : Do not verify disk (and save 33% time).
  209. S    : Make System-Disk.
  210. Snnn : Use nnn Sectors.
  211. Tnnn : Use nnn Tracks.
  212. U    : Unconditionally format the diskette.
  213. V    : Write Label to Disk.
  214. W    : Format with erase. Physically reformat diskette without data
  215.        loss
  216. Xnnn : Slide nnn Sectors, when head changes.
  217. Ynnn : Slide nnn Sectors nnn, when track changes.
  218.  
  219. Examples:
  220.  
  221. FDFORMAT A: /4                                    (format 360 kB disk)
  222. FDFORMAT A: /F:1.72                              (format 1.72 MB disk)
  223. FDFORMAT A: /T:80 /N:9                            (format 720 kB disk)
  224. FDFORMAT A: /O                    (format 720 kB disk for AT&T M24/28)
  225. FDFORMAT A: /F:720 M$F7 B$54         (format 720 kB disk for ATARI ST)
  226. FDFORMAT A: /F:12 D64                (format 1.2 MB disk with 64 RDEs)
  227. FDFORMAT A: /F:410 R               (format 410 kB Disk without verify)
  228.  
  229.  
  230.  
  231. DETAILED DESCRIPTION OF OPTIONS
  232. -------------------------------
  233.  
  234.  
  235. The Q and the U option
  236. ----------------------
  237.  
  238. Beginning with version 1.8. FDFORMAT formats disks the same way as 
  239. DOS-FORMAT of DOS Version 5. If the Q and U options are not specified, 
  240. FDFORMAT checks, if the diskette is already formatted in the format 
  241. you have choosen. If this is true, FDFORMAT only verifies the disk and 
  242. rewrites the System-Area. If the disk is formatted in another format, 
  243. a real low-level formatting is performed. If you specify the U option, 
  244. the diskette will be low-level formatted in any case.
  245.  
  246. The Q option specifies a quick format. FDFORMAT tries to determine the 
  247. current diskette format and then only rewrites the system area. All 
  248. options to specify a different format are ignored, if you specify the 
  249. Q option. FDFORMAT will also skip verifying, if the Q option is 
  250. selected. If the Q option is selected and FDFORMAT cannot find a valid 
  251. boot sector, the diskette will be low-level formatted with the format 
  252. you specified.
  253.  
  254.  
  255. The Tnnn option - Use nnn Tracks
  256. --------------------------------
  257.  
  258. This option tells FDFORMAT, how many tracks are to be used. A Standard 
  259. 360 kB diskette has 40 tracks, all other standard formats have 80 
  260. tracks. You can set this option to 1-41 for an 360 kB drive and to 1-
  261. 82 for all other drives. The more tracks you use, the more storage you 
  262. will receive. Some drives allow even more than 41 or 82 tracks, but 
  263. you may have trouble, when trying to read this diskette on another 
  264. disk drive. The default is 40 for a 360 kB Drive and 80 for all other 
  265. drives.
  266.  
  267. Example: FDFORMAT A: /T:41 (format a disk with 41 Tracks. This will 
  268. give you 369 kB storage in a 360 kB drive)
  269.  
  270.  
  271. The Nnnn option - Use nnn Sectors per Track
  272. -------------------------------------------
  273.  
  274. This option determines the number of sectors per track you will use. 
  275. The standard and default values for the different formats are:
  276.  
  277. disk format standard value maximum value possible
  278. ----------- -------------- ----------------------
  279. 360 kB            9                  10
  280. 720 kB            9                  10
  281. 1.2 MB           15                  18
  282. 1.44 MB          18                  21
  283.  
  284. You may use this option to increase the storage of your diskette too.
  285.  
  286. Example: FDFORMAT A: /N:10 (format a disk with 10 sectors. This gives 
  287. you 400 kB storage in a 360 kB drive).
  288.  
  289.  
  290. The Hnnn option - Use nnn sides (1 or 2)
  291. ----------------------------------------
  292.  
  293. You can set this option to 1 or 2. The default is always 2. Normally 
  294. you do not need this option, since single-sided disks are rarely used.
  295.  
  296.  
  297. Using T,N and H together
  298. ------------------------
  299.  
  300. These three options determine your diskette storage. The formula for 
  301. the diskette storage is:
  302.  
  303.                       tracks * sectors * sides
  304.       storage in kB = ------------------------
  305.                                   2
  306.  
  307. Since diskettes use usually 2 sided, you can simplify this formula to:
  308.  
  309.       storage in kB = tracks * sectors
  310.  
  311. Examples: FORMAT A: /T:80 /N:9 /H:2 (format a 720 kB disk)
  312.           FORMAT A: /T:82 /N:10 /H:2 (format a 820 kB disk)
  313.           FORMAT A: /T:40 /N:9 /H:2 (format a 360 kB disk)
  314.           FORMAT A: /T:41 /N:10 /H:2 (format a 410 kB disk)
  315.  
  316. You can use the F-Option (described above) as a shortcut for the T, H 
  317. and N options (eg. FORMAT A: /F:1.44 is equal to FORMAT A: /T:80 /N:18 
  318. /H:2).
  319.  
  320. Note: Always use High-Density-Diskettes when you format with more than 
  321. 11 sectors/track and always use double-density-disks, when you format 
  322. with 10 sectors and below.
  323.  
  324. Look at the following table to see, which values are maximum for T, H 
  325. and N.
  326.  
  327. Drive and disk                  max T  max N  max H Storage
  328. ------------------------------  -----  -----  ----- -------
  329. 360 kB drive with DD-diskette    41     10      2    410 kB
  330. 720 kB drive with DD-diskette    82     10      2    820 kB
  331. 1.2 MB drive with DD-diskette    82     10      2    820 kB
  332. 1.2 MB drive with HD-diskette    82     18      2   1.48 MB
  333. 1.44 MB drive with DD-diskette   82     10      2    820 kB
  334. 1.44 MB drive with DD-diskette   82     21      2   1.72 MB
  335.  
  336.  
  337. The Cnnn option - Use nnn sectors per cluster (1 or 2)
  338. ------------------------------------------------------
  339.  
  340. A cluster is the minimum allocation unit DOS can handle. DOS supports 
  341. 1 or 2 sectors per cluster for floppy disks. If you specify /C:1 space 
  342. is allocated in 512 Bytes steps. /C:2 means that space is allocated in 
  343. 1024 Byte steps. You can optimize your disk organization, if you use 
  344. /C:1, when you plan to store "many small" files and specify /C:2, when 
  345. you plan to store "few large" files on the disk to be formatted. The 
  346. default is /C:1 for high density disks and /C:2 for double density 
  347. disks
  348.  
  349. Example: FORMAT A: /F:360 /C:1 (format a 360 kB disk with 1 sector
  350. per cluster)
  351.  
  352. Note: A blank formatted disk with /C:2 always has more bytes free than 
  353. with /C:1. But when files are stored to the disk, your disk space will 
  354. be handled more dynamically.
  355.  
  356.  
  357. The Dnnn option - Use nnn Root-Directory-Entries
  358. ------------------------------------------------
  359.  
  360. This option determines the number of Root-Directory-Entries. The 
  361. default is 112 for double density disks and 224 for high density 
  362. disks. This value can be reduced to get additional space on disk or 
  363. increased up to 240 to reserve for space for files in the root 
  364. directory. This option does not affect any of your subdirectories. 
  365. Subdirectories are dynamically allocated. You only have to determine 
  366. the size of root directory. Legal values for disks with 1 sector per 
  367. cluster are 16, 32, 48, .... and for disks with 2 sectors per cluster 
  368. 16, 48, 80, .... if you specify a value between two legal values, it 
  369. will be increased to next legal value
  370. automatically.
  371.  
  372. Example: You need a disk that will not have more than 40 files in the 
  373. root directory. So type: FDFORMAT A: /D:40. You will get a disk with 
  374. 48 root directory entries and you have more space for data.
  375.  
  376.  
  377. The O option - Format a disk for AT&T/Olivetti M24/M28 Computers
  378. ----------------------------------------------------------------
  379.  
  380. This option is actually a shortcut for /T:80 /N:9 /H:2 /D:144. The 
  381. AT&T and Olivetti M24/M28 Computers use 720 kB Disks with 144 root 
  382. directory entries. The standard IBM 720 kB format has 112 root 
  383. directory entries. So simply use the /O option to format a diskette in 
  384. a 5¼"-1.2 MB drive or a 5¼"-720 kB drive.
  385.  
  386. Example: FDFORMAT A: /O
  387.  
  388. Note: If you could not read M24/M28 720 kB disks in your 1.2 MB
  389. drive until now, try again with FDREAD installed. It will work
  390. fine.
  391.  
  392.  
  393. The Mnnn option - Override media descriptor
  394. -------------------------------------------
  395.  
  396. FDFORMAT uses the same media descriptor byte as DOS-Format would do. 
  397. If you override this value, this has no effect under DOS 3.3x or DOS 
  398. 4.0x. But you may not be able to read the disk under DOS 3.2x. This 
  399. option was added to support to format disks for the ATARI ST. Refer to 
  400. the ATARI Documentation to set the correct Values for the media 
  401. descriptor and track, heads, sectors.
  402.  
  403.  
  404. The R option - Do not verify disk
  405. ---------------------------------
  406.  
  407. The R option skips verifying each track after it has been formatted. 
  408. This saves 33%-50% of time during formatting a diskette. The 
  409. disadvantage is that errors on the diskette are not detected. A 
  410. typical example for missing error detection is typing FDFORMAT A: /R 
  411. in an 1.2 MB drive with a double density disk inserted. FDFORMAT will 
  412. not report any errors in this case. If you are sure that you have a 
  413. good diskette and you specified no wrong parameters, the /R option is 
  414. a good choice to save time.
  415.  
  416.  
  417. The K option - No keyboard input
  418. --------------------------------
  419.  
  420. The K option suppresses the message "Insert new disk in drive...." and 
  421. starts formatting immediately, after FDFORMAT is started. This is 
  422. useful, if you want to start FDFORMAT from a batch file or an external 
  423. program. You can also suppress any screen output, if you add ">NUL" to 
  424. the FDFORMAT command (See your DOS Manual for piping input and 
  425. output). FDFORMAT returns an exit code or errorlevel, which can be 
  426. used in batch files. The exit codes are:
  427.  
  428. Exit Code Meaning
  429. --------- ----------------------------------------------------
  430.   0       normal completion
  431.   1       syntax error or illegal parameters
  432.   2       specified drive cannot be formatted
  433.   3       cannot determine format for format without erase
  434.   4       aborted by user (after I/O error or by Ctrl-Break)
  435.   8       I/O error for config file
  436.  16       syntax error or illegal parameters in config file
  437.  32       error writing disk label
  438. 128       incorrect DOS version (< 3.20)
  439.  
  440.  
  441. The S Option - Format system disk
  442. ---------------------------------
  443.  
  444. The S option lets you format a system disk. It copies boot-sector, 
  445. DOS-System-file and COMMAND.COM to your disk. FDFORMAT does not do 
  446. these task by itself, but calls the DOS-Command SYS to do so. Thus you 
  447. must make sure, that SYS.COM or SYS.EXE is in a directory, which is 
  448. included in your PATH Environment Variable. The call to SYS is made to 
  449. ensure compatibility with any DOS Version.
  450.  
  451. Note: You cannot create a system disk, which cannot be read without 
  452. FDREAD.
  453.  
  454.  
  455. Example: FDFORMAT A: /F:360 /S (correct)
  456.          FDFORMAT A: /F:410 /S (incorrect, because this
  457.                                 format requires FDREAD)
  458.  
  459. The 1 Option - Single sided disk
  460. --------------------------------
  461.  
  462. This is the same as the /H:1 option. provided for syntax compatibility 
  463. with DOS-Format.
  464.  
  465.  
  466. The 8 Option - 8 sector disk
  467. ----------------------------
  468.  
  469. This is the same as the /S:8 option. provided for syntax compatibility 
  470. with DOS-Format.
  471.  
  472.  
  473. The 4 option - 360 kB disk
  474. --------------------------
  475.  
  476. This is the same as the /F:360 option. provided for syntax 
  477. compatibility with DOS-Format.
  478.  
  479.  
  480. The P option - Does nothing
  481. ---------------------------
  482.  
  483. This option does really nothing in FDFORMAT Versions above 1.2. It was
  484. provided for compatibility with earlier versions.
  485.  
  486.  
  487. The V option - Write volume label
  488. ---------------------------------
  489.  
  490. This option writes a volume label to your disk. You may specify simply 
  491. /V. This will prompt you for a volume label. You may also specify 
  492. /V:<disklabel>. This will write the name <disklabel> to your disk.
  493.  
  494. Example: FDFORMAT A: /F:820 /V (prompts for volume label)
  495.          FDFORMAT A: /V:mydisk (Writes volume label MYDISK)
  496.  
  497.  
  498. The X and Y options - Do sector sliding
  499. ---------------------------------------
  500.  
  501. These options can be used to enhance the performance of your disk up 
  502. to 100%. This is a bit difficult to explain. Imagine a standard 360 kB 
  503. disk. It has 9 sectors on each track numbered 1 to 9. Normally the 
  504. sectors on all tracks ordered "1 2 3 4 5 6 7 8 9". With sector sliding 
  505. of 1 you order "1 2 3 4 5 6 7 8 9" on track 0, "9 1 2 3 4 5 6 7 8" on 
  506. track 1, "8 9 1 2 3 4 5 6 7" of track 2 and so on.
  507.  
  508. You can easily imagine, that it takes a little time, when your 
  509. diskette drive head steps from one track to another. But your diskette 
  510. continues rotating. Without sector sliding your diskette is positioned 
  511. to sector 2 or 3 on the next track, when the stepping is done. It 
  512. needs nearly a full revolution until sector 1 of the next track can be 
  513. read. With sector sliding of 1 or 2 your diskette is positioned 
  514. exactly on sector 1, when it starts reading again.
  515.  
  516. The DOS-Format program always formats with sector sliding 0. FDFORMAT 
  517. provides two parameters to do sector sliding. /Xn slides n sectors, 
  518. when you change the head, but not the track. /Ym slides m sectors, 
  519. when you change the track. Normally only /Y is useful, but on some 
  520. systems, especially XTs, you can reach additional speed by using /X.
  521.  
  522.  
  523. Now, how to determine the correct value for sector sliding. In general 
  524. you can say good values for /X are 0-2 and for /Y 0-4. The default is 
  525. 0 for /X and /Y. You to experiment with your configuration, which 
  526. value is optimal for you. You may reconfigure your default sector 
  527. sliding in the FDFORMAT.CFG file (described later). You have to find 
  528. out this for each format seperately. Always good choices are the 
  529. following:
  530.  
  531. Disk-Size          Good choice for sector sliding
  532. ------------------ ------------------------------
  533. 320-410 kB              /X:1 /Y:3
  534. 720-820 kB              /X:1 /Y:2
  535. 1.2 MB-1.72 MB          /X:2 /Y:3
  536.  
  537. This will improve your diskette perfomance 50%-100% on almost any 
  538. system.
  539.  
  540. Example: FDFORMAT A: /4 /X:1 /Y:2 /R/K/V:SLIDE_DISK
  541.  
  542.  
  543. The W option - Format without erase
  544. -----------------------------------
  545.  
  546. This option is used to reformat a diskette. This is useful, when you 
  547. have diskette, that is still readable, but only with several retries. 
  548. This is often the case, if you try to read a 360 kB Diskette in a 360 
  549. kB drive, that was written in an 1.2 MB drive.
  550.  
  551. If you choose this option, no modifications are made to diskette. If 
  552. you e.g. specify a different format or volume label, these options are 
  553. ignored. The diskette will be read in track by track. Then the track 
  554. will be reformatted and the data is written back to the diskette.
  555.  
  556. It is safe to press Ctrl-Break during format without erase, because 
  557. the exit-request is notified, when you press Ctrl-Break, but 
  558. performed, when the current track is completely written.
  559.  
  560.  
  561. The A option - Use BIOS-Calls only to change diskette type
  562. ----------------------------------------------------------
  563.  
  564. This option tells FDFORMAT to use only BIOS-Calls to change the 
  565. diskette type and not to write the Media Byte directly. This option is 
  566. required on most XT-Systems with HD-Controllers and external diskette 
  567. drives. It has the typical disadvantage, that some BIOS Versions do 
  568. not support every Media Type in every drive. So use this option only, 
  569. if you encounter problems without it. This option is also configurable 
  570. in the FDFORMAT.CFG file descrived later.
  571.  
  572.  
  573. The Innn option - Use Interleave of nnn
  574. ---------------------------------------
  575.  
  576. The I option changes the Interleave factor for diskette format. 
  577. Normally the best interleave is 1, thus it takes only 1 revolution to 
  578. read an entire track. But there are 2 exceptions to it. When 
  579. formatting a 21 sector 3½"-HD disk or a 18 sector 5¼"-HD disk. You 
  580. need an interleave of 2 in these cases, because a data sector is used 
  581. as GAP. If you do not use an interleave of at least 2, the disk will 
  582. become unreadable.
  583.  
  584. But you do not have to take care about this option, FDFORMAT 
  585. automatically determines the best interleave for you (1 or 2). However 
  586. you can set your interleave whatever you like, but the only effect is, 
  587. that your disk becomes slower.
  588.  
  589. Example: FDFORMAT A: /I:6 (format a very slow disk)
  590.  
  591.  
  592. The Gnnn option - Specify GAP length
  593. ------------------------------------
  594.  
  595. The GAP length is the fill space between two sectors on one track. As 
  596. with the Interleave, FDFORMAT determines the best value for you. You 
  597. can reduce the GAP length to speed up your diskette. But this reduces 
  598. your safety, when storing data, unless you choose an interleave of 2. 
  599. And an interleave of drastically slows down your disk performance. If 
  600. you want to reduce your GAP length anyway, do not set it below 32 for 
  601. high density disks and not below 40 for double density disks.
  602.  
  603. For the safety of your data, it is recommended not to modify the GAP 
  604. length. Sector sliding is a better method to speed up your diskette 
  605. performance and does not affect the safety of your data.
  606.  
  607.  
  608. The Bnnn option - Setting the disk type Byte
  609.  
  610. This option affects to 80286/80386/80486 Computers only and needs to 
  611. be set, if you have an incompatible or older BIOS, which does not 
  612. support 1.44 MByte Drives. It is configurable in the FDFORMAT.CFG file 
  613. described later. This byte is made out of the following components:
  614.  
  615. Group Decimal Hexadecimal  Meaning
  616. -----------------------------------------------------------------
  617.          0         0       Media Type unknown
  618.  1      16        10       Media Type known
  619. -----------------------------------------------------------------
  620.  
  621.         32        20       double stepping (40 Tracks)
  622.  2       0         0       single stepping (80 Tracks)
  623. -----------------------------------------------------------------
  624.          0         0       Data-Transfer-Rate: 500 kBaud
  625.         64        40       Data-Transfer-Rate: 300 kBaud
  626.  3     128        80       Data-Transfer-Rate: 250 kBaud
  627. -----------------------------------------------------------------
  628.          0         0       360 kB Disk in 360 kB Drive, unchecked
  629.          1         1       360 kB Disk in 1.2 MB Drive, unchecked
  630.          2         2       1.2 MB Disk in 1.2 MB Drive, unchecked
  631.          3         3       360 kB Disk in 360 kB Drive, checked
  632.          4         4       360 kB Disk in 1.2 MB Drive, checked
  633.          5         5       1.2 MB Disk in 1.2 MB Drive, checked
  634.  4       7         7       state not defined (3½"-Drive)
  635. -----------------------------------------------------------------
  636.  
  637. To get the correct value for your format, select one Value out of each 
  638. group and add these values. Normally the media type byte is set 
  639. correctly, following these rules:
  640.  
  641. Group 1: Always set to 16
  642. Group 2: 32, if tracks from 1-43, else 0
  643. Group 3: high density disks: always 0 double density disks: 64 for
  644.          5¼"-Disks, 128 for 3½"-Disks
  645. Group 4: always set to 3
  646.  
  647. Why set group 4 always to 3? There is a problem with DTK-BIOS. DTK-
  648. BIOS seems not to work with any other value than 3. All other BIOS 
  649. Versions I have tested, seem to ignore the Value of Group 4. So it 
  650. will be the best choice to set it always to 3. In some few cases. Your 
  651. System will not work with the default value. In this case, try out any 
  652. value from 0-7 for Group 4. It should work with at least one value. If 
  653. you have determined the correct value, you can write it in the 
  654. FDFORMAT.CFG file.
  655.  
  656.  
  657.  
  658. CONFIGURING FDFORMAT WITH FDFORMAT.CFG
  659. --------------------------------------
  660.  
  661. Before you start setting up a configuration file, you should try, if 
  662. all formats will work correctly. FDFORMAT normally automatically 
  663. determines the best options for you. If something seems to fail, then 
  664. set up a configuration file.
  665.  
  666. You must also create a configuration file, if you have one of the
  667. following situations.
  668.  
  669. 1) You have an XT with a high density controller to support 1.2 MByte
  670.     or 1.44 MByte drives.
  671. 2) You have an AT and an 1.44 MByte drive, but you cannot install it
  672.    with your setup program (e.g. IBM/Advanced diagnostics).
  673. 3) You have an XT (like EPSON QX-16 or AT&T/Olivetti M24/M28), which
  674.    has one or more 720 kByte drives, that also supports 360 kByte
  675.    diskettes.
  676. 4) You have a 5¼"-720 kByte drive in an AT.
  677.  
  678.  
  679. Format of the configuration file FDFORMAT.CFG
  680. ---------------------------------------------
  681.  
  682. The general format for FDFORMAT.CFG is:
  683.  
  684. <drive>: [XT|AT] [BIOS] [40=n] [80=n] [F=n] [360=n] [720=n] [1.2=n] 
  685. [1.44=n] [X=n] [Y=n]
  686.  
  687. Example for a configuration file:
  688.  
  689.  REM Configure drive B: for 1.44 MByte
  690.  B: AT BIOS F=7 360=$B7 720=$97 1.44=$17 X=2 Y=2
  691.  
  692.  REM Configure drive A: for 5¼"-720 kByte
  693.  A: AT F=2 BIOS 720=$54 X=0 Y=0
  694.  REM All Numbers preceded by a $-sign are hexadecimal
  695.  
  696. The options in detail:
  697.  
  698. XT   : Tell FDFORMAT that your Computer is an XT or compatible and
  699.        does not perform any AT-BIOS functions. This option is only
  700.        needed, if FDFORMAT does not automatically recognizes, that
  701.        your computer is an XT. This option is also needed, if your XT
  702.        supports 720 kByte drives, that can handle 360 kByte diskettes
  703.        too.
  704.  
  705. AT   : Tell FDFORMAT that your Computer is an 80286/386 or 80486
  706.        Computer or an XT, that supports AT-BIOS functions. This option
  707.        is only needed, if FDFORMAT does not recognize, that you can
  708.        use AT-BIOS functions. A typical case, where you need this
  709.        parameter is, when you have an XT with a high density
  710.        controller installed.
  711.  
  712. BIOS : This option works only with AT-like-BIOS. It tells FDFORMAT not
  713.        to modify the disk type byte directly, as it is the default,
  714.        but try to change the format information via BIOS-Calls. This
  715.        option should only be used, if FDFORMAT does not work without
  716.        this option. The BIOS option has the typical disadvantage that
  717.        some BIOS-Versions do not support all formats for all drives.
  718.        In this case you must set the disk type byte for the
  719.        unsupported format in your configuration file. This option is
  720.        described later.
  721.  
  722. 40   : This option works only with a few XT-BIOS-Versions for 720
  723.        kByte drives. You can specify an offset to the physical drive
  724.        number, that indicates, that a 40 Track Diskette (360 kByte) is
  725.        inserted, when calling BIOS-Disk I/O. Normally this option is
  726.         set to 0.
  727.  
  728. 80   : This option works with most XT-BIOS-Versions, that support 720
  729.        kByte Drives, who also can handle 360 kByte diskettes. These
  730.        are for example AT&T M24/M28 or EPSON-QX16. The most often used
  731.        offset is 64. Try 64 first, if it does not work try 32, 16, 8,
  732.        4 or 2. Do not try any other values, it will not work.
  733.  
  734. F    : This option needs to be set only, if your BIOS does not support
  735.        the your type of disk drive. You need this option, if you have
  736.        an 1.44 MB drive installed and your BIOS does not support it.
  737.        If you want to install this option use the following values:
  738.        F=0 for 360 kByte Drive, F=1 for 1.2 MB drive, F=3 for 720 kB
  739.        Drive and F=7 for 1.44 MB drive.
  740.  
  741. 360  : Use this option to use another disk type byte for 360 kB
  742.        diskettes than the default value of $73. If you have set the
  743.        BIOS option, the 360 kByte format will not be set by BIOS, but
  744.        directly using this disk type byte. Refer to the B command line
  745.        option to see how you can determine the correct disk type byte.
  746.  
  747. 720  : same as 360, but for 720 kB format.
  748. 1.2  : same as 360, but for 1.2 MB format.
  749. 1.44 : same as 360, but for 1.44 MB format.
  750.  
  751. X    : can be used to override the default of 0 for sector sliding,
  752.        when the head changes.
  753. Y    : can be used to override the default of 0 for sector sliding,
  754.        when the track changes.
  755.  
  756.  
  757. Sample Configuration Files
  758. --------------------------
  759.  
  760.  
  761.  
  762. A: XT PC80=64               720 kB drive in XT like AT&T M24
  763. A: AT F=7                   1.44 MB drive in AT or XT
  764. A: AT F=1                   1.2 MB drive in AT or XT
  765. A: AT F=2 360=$74 720=$57   720 kB 5¼"-Drive in AT
  766. A: AT F=2 360=$73 720=$53   720 kB 5¼"-Drive in AT & DTK-BIOS
  767.  
  768.